<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的浏览记录-{{$SEO['title']}}</title>
    <meta name="keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{$SEO['description']}}"/>
    <!--公用css引用-->
    @include('front.common.style')
    <!--END/公用css引用-->
    <link rel="stylesheet" href="../dist/css/userCenter.css">
</head>
<body>

<!--公共头部-->
@include('front.common.header')
<!--END/公共头部-->

<div class="inbox user-center">
    @inject('pictureService','App\Interfaces\PictureService')

    <!--主体部分-->
    <div class="ui-brd-box1 view-history fn-ohide">
        <div class="tit-5 tit-skin-4">
            <span class="h">我的浏览记录</span>
        </div>

        <div class="list-wrap">
            {{--<div class="time">今天<span class="small fn-ml10 fn-mr10">2015-12-12</span></div>--}}
            <ul class="imglist-5col bl-imglist history-list">
                @foreach($viewHistory->items() as $item)
                <li>
                    <div class="inner">
                        <a class="link-mark" href="/goods/{{$item->goods_id}}" target="_blank" title="{{$item->goods_name}}">
                            <img src="{{$pictureService::thumb($item->goods_thumb,254,254)}}" alt="{{$item->goods_name}}">
                        </a>
                        <div class="con fn-mt4">
                            <span class="price">￥{{$item->shop_price}}</span>
                        </div>
                    </div>
                </li>
                @endforeach
            </ul>
        </div>
        <!--分页-->
        <div class="pager pager-big fn-tc">
            {!! $viewHistory->render() !!}
        </div>

        <!--END/分页-->
    </div>
    <!--END/主体部分-->

</div>

<!--公共尾部-->
@include('front.common.footer')
<!--END/公共尾部-->

<!--公用js引用-->
@include('front.common.script')
<!--END/公用js引用-->

<script src="../dist/js/userCenter.js"></script>
</body>
</html>